package pl.iachoo.ctl.tabory.ui.editors.stations.nattable;

import java.util.List;

import pl.iachoo.ctl.tabory.dao.data.vo.StationVO;

import net.sourceforge.nattable.data.IDataProvider;

public class StationDataProvider implements IDataProvider {

	private List<StationVO> listStation;

	public StationDataProvider(List<StationVO> listStation) {
		this.listStation = listStation;
	}

	@Override
	public Object getDataValue(int columnIndex, int rowIndex) {
		if (columnIndex == rowIndex) {
			return new Double(0.0);
		}
		return null;
	}

	@Override
	public void setDataValue(int columnIndex, int rowIndex, Object newValue) {
		// TODO Auto-generated method stub

	}

	@Override
	public int getColumnCount() {
		return listStation.size();
	}

	@Override
	public int getRowCount() {
		return listStation.size();
	}

}
